package org.cncy;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormateUtil {

    /**
     * yyyy-MM-dd HH:mm:ss
     *
     * @param date
     * @return
     */
    public static String getyMdHms(long date) {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(date));
    }
}
